<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
LISTE DES MATERIAUX :<br>
<table border="1">
<c:forEach var="mat" items="${listMat}">
    <tr>
    <td>
    <form id="${mat.id}" name="${mat.id}" action="">
    <input type="text" name="nomMat" value="${mat.nom}" />
    <input type="button" name="doIt" value="Modifer" onClick="javascript:modifMat(${mat.id})"/>
    </form>
    </td>
    <td><a href="javascript:go('categorieMateriaux.cmd&action=removeMat&mat=${mat.id}')">X</a></td>
    </tr>
    
</c:forEach>
</table>
    <br><br>    
 <form name="addCategorie" action="" >
    <input type="text" name="mat" value="" id="matg"/>
    <input type="button" name="doIt" value="Ajouter le materiaux" onClick="javascript:addMat()"/>
</form>   
<br>
 <a href="ControleurPrincipal">Retourner à l'accueil</a>
